package com.eamois.action.manual;

import java.util.Collection;

import com.eamois.action.BaseAction;
import com.eamois.domain.manual.WorkStep;
import com.eamois.domain.manual.WorkStepCols;
import com.eamois.service.manual.WorkStepColsService;
import com.eamois.util.ServiceFactory;

public class WorkStepColsAction extends BaseAction{
	private WorkStepColsService colsService;

	public WorkStepColsService getColsService() {
		return colsService;
	}

	public void setColsService(WorkStepColsService colsService) {
		this.colsService = colsService;
	}

	public WorkStepColsAction() {
		setColsService((WorkStepColsService) ServiceFactory.getInstance().getBean("workStepColsService"));
	}
	
	public Collection<WorkStepCols> findWorkStepCols(
			WorkStep workStep) {
		return this.getColsService().findWorkStepCols(workStep);
	}
	
	public void saveWorkStepCols(WorkStepCols cols) {
		this.getColsService().save(cols);
	}
	
	public void removeWorkStepCols(WorkStepCols cols) {
		this.getColsService().remove(cols);
	}
	
}
